<div>
	<div class="search" ng-show="searchOpen" data-ng-init="clearAllGeos();">
		<h4 class="title">绘图分析</h4>
		<div class="zs-form-tab">
			<div class="zs-maptools-type-list">
				<ul style="overflow:hidden;">
					<li><a ng-click="analysisDrawPoint();" class="query-type-point selected" title="点"></a>
					</li>

					<li>
						<a ng-click="analysisDrawPolyline();" class="query-type-line" title="线"></a>
					</li>

					<li>
						<a ng-click="analysisDrawPolygon();" title="面" class="query-type-polygon"></a>
					</li>
				</ul>
			</div>
			<table width="100%">
				<tbody>
					<tr>
						<td class="right" width="28%">分析图层：</td>
						<td style="text-align:left;"><label data-ng-init="initAnalysisLayer();">林地资源<label>
									<!-- <ag-Combotree class="zs-input" style="width:172px;height: 28px" 
								ng-change="onchangeAnalysisLayer();"
								fn='analysisLayer'
								para="{ uDictionary:false,
										pidField:'id',
										nfn:'tjlbSearch,tjfieldSearch',
										checkbox:false,
										valueField:'id',
										textField:'name',
										onlyLeafCheck:true,
										bindField:'sdomaincode',
										bindFn:'menus',
										keyField:'id',
										orderObject:{index:0},
										queryFields:'index,id,name,type,url,medname,layerId,queryLayerId',
										pageSize:1200,
										maxNavs:6,
										queryObject:{},
										
										ssn:'analysisconfig'}"
								ng-model="analysisLayer.layer"
								text-Value="analysisLayer.layerName"></ag-Combotree>-->
						</td>
					</tr>
					<tr>
						<td class="right">缓冲距离：</td>
						<td style="text-align:left;">
							<input class="zs-input" ng-model="analysisLayerBufferDistance" placeholder="输入范围..." style="width:175px;" />
						</td>
					</tr>
					<tr>
						<td class="right">统计类别：</td>
						<td style="text-align:left;">
							<ag-Combotree class="zs-input" style="width:172px;height: 28px" fn='tjlbSearch' para="{uDictionary:false,
									foreignField:'pid',
									pidField:'pid',
									checkbox:false,
									valueField:'id',
									textField:'aliasName',
									onlyLeafCheck:true,
									bindField:'name',
									bindFn:'menus',
									keyField:'id',
									orderObject:{},
									queryFields:'pid,id,aliasName,name',
									pageSize:1200,
									maxNavs:6,
									
									queryObject:{'pid:=':'2d85b4982316406ba53d0c4d28ddc1e9'},
									ssn:'statisticscateory'}"
							 ng-model="tjlbSearch.selectedValue" text-Value="tjlbSearch.selectedValuename"></ag-Combotree>
						</td>
					</tr>
					<tr>
						<td class="right">统计字段：</td>
						<td style="text-align:left;">
							<ag-Combotree class="zs-input" style="width:172px;height:28px;" fn='tjfieldSearch' para="{uDictionary:false,
									foreignField:'pid',
									pidField:'pid',
									checkbox:false,
									valueField:'id',
									textField:'aliasName',
									onlyLeafCheck:true,
									bindField:'name',
									bindFn:'menus',
									keyField:'id',
									orderObject:{},
									queryFields:'pid,id,aliasName,name',
									pageSize:1200,
									maxNavs:6,
						
									queryObject:{'pid:=':'2d85b4982316406ba53d0c4d28ddc1e9'},
									ssn:'statisticsfield'}"
							 ng-model="tjfieldSearch.selectedValue"></ag-Combotree>
						</td>
					</tr>
					<tr>
						<td class="center" colspan="2">
							<input type="button" name="ok" ng-click="validDrawAnalysisParan(analysis);" value="分析" class="zs-btn" />


						</td>
					</tr>
				</tbody>
			</table>
		</div>
	</div>

	<div class="result" ng-show="!searchOpen" style="width:390px">
		<a class="back" ng-click="setSearchOpen(true);">返回</a>
		<a class="back" style="right: 120px;color: blue;" ng-click="exportResult()">导出分析结果</a>
		<a class="back" style="right: 40px;color: blue;" ng-click="printImage()">导出分析图形</a>
		<div class="zs-form-tab" style="height: 500px;width:380px">

			<div class="container" style="height: 95%;overflow-y: auto;">

				<div class="fore-core-itab-title" data-ng-init="iniTab('sjfx1', 'map');">
					<ul class="idTabs">
						<li style="width:80px;"><a class="{{tabs['sjfx1'].tabClass['map']}}">统计图</a></li>
					</ul>
				</div>

				<pie-charts data-source="analysisShowResult" style="width:250px;height: 250px;float:bottom;margin-bottom:0px;">
				</pie-charts>

				<div class="fore-core-itab-title" data-ng-init="iniTab('sjfx2', 'table');">
					<ul class="idTabs">
						<li style="width:80px;"><a class="{{tabs['sjfx2'].tabClass['table']}}">统计表</a></li>
					</ul>
				</div>

				<div style="margin-top: 5px;">
					<table border="2">
						<thead>
							<td ng-repeat="(key,value) in tableResult[0]">
								<label ng-bind="key"></label>
							</td>
						</thead>
						<tbody>
							<tr ng-repeat="currow in tableResult">
								<td ng-repeat="(key,value) in currow">
									<label ng-bind="value"></label>
								</td>
							</tr>
						</tbody>
					</table>
				</div>

				<div class="fore-core-itab-title" data-ng-init="iniTab('sjfx3', 'xb');">
					<ul class="idTabs">
						<li style="width:80px;"><a class="{{tabs['sjfx3'].tabClass['xb']}}">小班详情</a></li>
					</ul>
				</div>

				<div style="margin-top: 5px;">
					<table border="2">
						<thead>
							<td ng-repeat="key in showfieldinfo">
								<label ng-bind="key.alias"></label>
							</td>
						</thead>
						<tbody>
							<tr ng-repeat="currow in resultXb">
								<td ng-repeat="key in showfieldinfo">
									<a ng-mousemove="highFeatureSelectGraphic(currow.attributes._guid);" ng-mouseleave="featureSelectGraphic(currow.attributes._guid);"
									 ng-click="showInfoWindowAndResize(currow.attributes._guid);">

										<label ng-bind="currow.attributes[key.name] | numlen"></label>
									</a>
								</td>
							</tr>
						</tbody>
					</table>
				</div>
			</div>
		</div>
	</div>
</div>